package com.thinkcar.test.boot.enums;

import com.thinkcar.core.exception.api.BaseErrorCode;

/**
 * @author: jiangyong
 * @date: 2025/10/18
 * @description: ExceptionEnum
 */
public enum ExceptionEnum implements BaseErrorCode {

    //
    REDIS_NOT_FOUND("010100", "redis中不存在该key,key=[{}]"),


    FAIL("019999", "操作失败");

    /**
     * 错误码
     */
    private final String code;

    /**
     * 错误描述
     */
    private final String msg;

    ExceptionEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
